<script>
	$(document).ready(function(){
		
		$('#kd_fakultas').change(function(){
			$('#kd_prodi').load(base_url+'prosedur/getProdibyFakultas/'+$('#kd_fakultas').val());
		});
		
		$('#kd_prodi').change(function(){
			$('#kd_dosen').load(base_url+'prosedur/getDosenbyProdi/'+$('#kd_prodi').val());
		});
		
	});
</script>

<form id="form1" method="post" style="margin:10px;">
	<!--<div class="fitem" >
		<label style="width:150px">NO SK </label>:
		<input name="no_sk" size="15" required="true" value="<?=$no_sk?>">
	</div>-->
	<input type="hidden" name="kode" id="kode" value="<?=$kode?>">
	<div class="fitem" >
		<label style="width:100px">Fakultas </label>:
		<select id="kd_fakultas" name="kd_fakultas" style="width:290px;" <?php if($aksi == 'edit'){echo 'disabled';}?>>
			<?=$this->mdl_prosedur->OptionFakultas(array('value'=>$kd_fakultas));?> 
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Prodi </label>:
		<select id="kd_prodi" name="kd_prodi" style="width:290px;" <?php if($aksi == 'edit'){echo 'disabled';}?>>
			<?=$this->mdl_prosedur->OptionProdi(array('value'=>$kd_prodi, 'kd_fakultas'=>$kd_fakultas));?> 
		</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Dosen </label>:
		<select id="kd_dosen" name="kd_dosen" style="width:200px;" <?php if($aksi == 'edit'){echo 'disabled';}?>>
			<?=$this->mdl_prosedur->OptionDosen(array('kd_prodi'=>$kd_prodi, 'value'=>$kd_dosen));?> 
		</select>
	</div>
	<!--<div class="fitem" >
		<label style="width:150px">NIDN </label>:
		<input name="nidn" size="15" required="true" value="<?=$nidn?>">
	</div>-->
	<div class="fitem" >
		<label style="width:150px">Status Dosen Wali</label>:		
		<input type="checkbox" name="dosen_wali" <?=$dosen_wali=='A'?'checked':''?>/> Aktif
	</div>
	<!--<div class="fitem" >
		<label style="width:100px">NO SK </label>:
		<input name="no_sk" size="15" required="true" value="<?=$no_sk?>">
	</div>-->
</form>
	

